package router

import (
	"github.com/gin-gonic/gin"
	"project07_resume_web/src/api"
	"project07_resume_web/src/middlewares"
)

//rpc GetResumeList(PageInfo) returns(ResumeRes);
//rpc GetResumeByResumeId(ResumeId) returns(ResumeInfo);
//rpc GetResumeByHouseKeepingId(HouseKeepingId) returns(ResumeRes);
//rpc GetResumeByResumeName(ResumeName) returns(ResumeRes);
//rpc CreateResume(CreateResumeReq) returns(google.protobuf.Empty);
//rpc UpdateResume(UpdateResumeReq) returns(google.protobuf.Empty);
//rpc DeleteResumeByResumeId(ResumeId) returns(google.protobuf.Empty)

func InitRouters(router *gin.RouterGroup) {
	router.GET("/getresumlist", middlewares.JWTAuth(), api.GetResumeList)
	router.GET("/getresumebyid", middlewares.JWTAuth(), api.GetResumeByResumeId)
	router.GET("/getresumebyhouseid", middlewares.JWTAuth(), api.GetResumeByHouseId)
	router.GET("/getresumebyresumename", middlewares.JWTAuth(), api.GetResumeByResumeName)
	router.POST("/createresume", middlewares.JWTAuth(), api.CreateResume)
	router.PUT("/updateresume", middlewares.JWTAuth(), api.UpdateResume)
	router.POST("/uploadresume", middlewares.JWTAuth(), api.UploadResume)
	router.DELETE("/deleteresumebyresumeid", middlewares.JWTAuth(), api.DeleteResumeByResumeId)
	router.POST("/Test", api.UploadResume_Test)
}
